//
//  ViewController.m
//  KSCrashDemo
//
//  Created by shuai on 2025/10/28.
//

#import "ViewController.h"
#import <MySDK/MYCrashTest.h>
#import <MySDK/OTKSCrashTest.h>

@interface ViewController()
@property (nonatomic, strong) NSMutableArray *dataArray; // 假设该数组被错误释放
@end

// ViewController.m
@implementation ViewController
- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = UIColor.redColor;
    
    
    UIButton *btn = [[UIButton alloc]init];
    [self.view addSubview:btn];
    [btn addTarget:self action:@selector(test) forControlEvents:UIControlEventTouchUpInside];
    [btn setBackgroundColor:UIColor.cyanColor];
    [btn setTitle:@"测试崩溃" forState:UIControlStateNormal];
    btn.frame = CGRectMake(100, 300, 100, 45);
}

- (void)test {
    [[MqwSDKCaaa new] testArrayOutOfBoundsCrash];
}

@end
